package com.loctek.importexport.bean;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * 作者: 司海林
 * 时间: 16/3/10
 * 邮箱: 371184359@qq.com
 * 描述:
 */
public abstract class BaseResponse implements Serializable {

    private final String TAG = this.getClass().getSimpleName();
    // 错误码
    protected String code;
    protected  String message;

    public boolean isSuccess() {
        return TextUtils.equals(code, "000") ? true : false;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
